<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<title>ddd</title>
	<link rel="stylesheet" type="text/css" href="css/style.css">
	<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
	<script type="text/javascript" src="js/Validform_v5.3.2_min.js"></script>
</head>
<body>
	<form>
		<div>
			<input type="text" datatype="*" nullmsg="请输入主营商品！">
		</div>
		
	</form>
</body>
	<script type="text/javascript">
		var demo=$("form").Validform({
		        tiptype:3,
		        label:".label",
		        postonce:true,
		        showAllError:true,
		        datatype:{
		          "rmb":/^\[0-9]{1,6}([\.]\[0-9]{1,2})?$/,
		          "number":/^[0-9]*[1-9][0-9]*$/,
		          "str":/^[a-zA-Z]+$/,
		          "select":/^[1-9]*[1-9][0-9]*$/,
		          "img":/^(([a-zA-Z0-9_]+):(\\.+))|([a-zA-Z0-9_]+)(.JPEG|.jpeg|.JPG|.jpg|.GIF|.gif|.BMP|.bmp|.PNG|.png)$/,
		          "imgs":/^$|^(([a-zA-Z0-9_]+):(\\.+))|([a-zA-Z0-9_]+)(.JPEG|.jpeg|.JPG|.jpg|.GIF|.gif|.BMP|.bmp|.PNG|.png)$/
		        }
		    });
	</script>
</html>